package com.puyuba.puyuba.view.fragment;

import android.os.Bundle;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.puyuba.puyuba.R;
import com.pyb.java.basemodule.BaseFragment;
import com.puyuba.puyuba.view.adapter.MessageFindTeacherAdatper;
import com.scwang.smart.refresh.layout.SmartRefreshLayout;

import java.util.ArrayList;
import java.util.List;

/**
 * 找老师 职业技能页面
 */
public class MessageFinteaFragment3 extends BaseFragment {
    private SmartRefreshLayout srlMsgFindteacher;
    private RecyclerView rclFindTea;
    @Override
    public void initView() {

        rclFindTea = (RecyclerView) getActivity().findViewById(R.id.rcl_find_tea3);
        srlMsgFindteacher = (SmartRefreshLayout) getActivity().findViewById(R.id.srl_msg_findteacher3);

        rclFindTea.setLayoutManager(new LinearLayoutManager(getActivity()));
        List<String> data = new ArrayList<>();
        data.add("aa");
        data.add("aa");
        data.add("aa");
        MessageFindTeacherAdatper mAdapter = new MessageFindTeacherAdatper(getActivity(),data);
        mAdapter.bindToRecyclerView(rclFindTea);
    }
    public static MessageFinteaFragment3 getInstance(String type) {
        MessageFinteaFragment3 messageOneFragment = new MessageFinteaFragment3();
        Bundle args = new Bundle();
        args.putString("type", type);
        messageOneFragment.setArguments(args);
        return messageOneFragment;
    }
    @Override
    protected int getLayoutId() {
        return R.layout.fragment_find_tea3;
    }

}
